﻿using System;
using System.Collections.Generic;

namespace RSPDS.MOSS.PrettyUrlController
{
    public static class Extensions
    {
        public static bool ContainsCaseless(this IList<String> list, string item)
        {
            foreach (string str in list)
            {
                if (item.Contains(str) ||
                    item.ToUpper().Contains(str.ToUpper()))
                    return true;
            }
            return false;
        }
    }
}